import {createBrowserRouter} from 'react-router-dom'
import Home from '../component/Home'
import Xiang from '../component/Xiang'
import { Navigate } from 'react-router-dom'

const router = createBrowserRouter([
    {path:'/home',element:<Home/>},
    {path:'/xiang',element:<Xiang/>},
    {path:'/',element:<Navigate to='/home'/>}
])


export default router
